<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-community_id" class="control-label col-xs-12 col-sm-2">{:__('Community_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control" id="c-community_id" data-rule="required" name="row[community_id]" value="{$row.community_id}">
                {foreach name="community" item="vo"}
                    {if ($vo.code == $row.community_id)}
                        <option value="{$vo.code}" selected>
                            {$vo.name}
                        </option>
                    {else}
                        <option value="{$vo.code}">
                            {$vo.name}
                        </option>
                    {/if}
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-factory_name" class="control-label col-xs-12 col-sm-2">{:__('Factory_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-factory_name" data-rule="required" class="form-control" name="row[factory_name]" type="text" value="{$row.factory_name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-status" data-rule="required" class="form-control" name="row[status]" value="{$row.status}">
                {foreach name="statusList" item="vo" key="index"}
                {if ($index == $row.status)}
                <option value="{$index}" selected>
                    {$vo}
                </option>
                {else}
                <option value="{$index}">
                    {$vo}
                </option>
                {/if}
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
